<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>幸运抽奖活动</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      min-height: 100vh;
      padding-bottom: 80px;
    }
    
    .container {
      max-width: 540px;
      margin: 0 auto;
      padding: 0 15px;
    }
    
    .prize-draw-header {
      padding: 20px 0;
      text-align: center;
      position: relative;
    }
    
    .draw-title {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    
    .draw-desc {
      font-size: 14px;
      color: #666;
      margin-bottom: 16px;
    }
    
    .countdown {
      display: inline-flex;
      align-items: center;
      background-color: rgba(0,0,0,0.05);
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 14px;
    }
    
    .countdown i {
      margin-right: 6px;
      color: #ff4d4f;
    }
    
    .countdown-time {
      color: #ff4d4f;
      font-weight: 600;
      margin-left: 4px;
    }
    
    .user-info {
      display: flex;
      align-items: center;
      padding: 12px 15px;
      background-color: white;
      border-radius: 12px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 12px;
    }
    
    .user-name {
      font-weight: 500;
      flex: 1;
    }
    
    .draw-chances {
      display: flex;
      align-items: center;
      color: #ff9800;
      font-weight: 500;
      font-size: 14px;
    }
    
    .draw-chances i {
      margin-right: 4px;
    }
    
    /* 抽奖区域样式 */
    .draw-area {
      background-color: white;
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      position: relative;
      overflow: hidden;
    }
    
    /* 通用按钮样式 */
    .btn {
      display: block;
      width: 100%;
      padding: 14px;
      border-radius: 30px;
      font-weight: 600;
      font-size: 16px;
      transition: all 0.2s;
      border: none;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
    }
    
    .btn-primary {
      background-color: #ff4d4f;
      color: white;
    }
    
    .btn-primary:hover {
      background-color: #ff7375;
      color: white;
    }
    
    .btn-secondary {
      background-color: #f5f5f5;
      color: #666;
    }
    
    .btn-secondary:hover {
      background-color: #eeeeee;
    }
    
    /* 奖品展示区 */
    .prizes-container {
      margin-bottom: 24px;
    }
    
    .prize-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .prize-item:last-child {
      border-bottom: none;
    }
    
    .prize-icon {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      background-color: #f5f5f5;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 12px;
      font-size: 20px;
      color: #ff9800;
    }
    
    .prize-info {
      flex: 1;
    }
    
    .prize-name {
      font-weight: 500;
      margin-bottom: 2px;
    }
    
    .prize-desc {
      font-size: 12px;
      color: #999;
    }
    
    .prize-probability {
      font-size: 12px;
      color: #999;
    }
    
    /* 中奖记录 */
    .winners-record {
      background-color: white;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .record-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
    }
    
    .record-title i {
      margin-right: 8px;
      color: #ff9800;
    }
    
    .winner-item {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      font-size: 14px;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .winner-item:last-child {
      border-bottom: none;
    }
    
    .winner-name {
      display: flex;
      align-items: center;
    }
    
    .winner-name::before {
      content: "•";
      color: #ff9800;
      margin-right: 8px;
    }
    
    .winner-prize {
      color: #ff4d4f;
      font-weight: 500;
    }
    
    /* 底部操作栏 */
    .action-bar {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      max-width: 540px;
      margin: 0 auto;
      background-color: white;
      padding: 15px;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
      z-index: 10;
    }
    
    /* 如何获得更多抽奖机会 */
    .get-chances {
      background-color: white;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 20px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .get-chances-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
    }
    
    .get-chances-title i {
      margin-right: 8px;
      color: #4caf50;
    }
    
    .chance-method {
      display: flex;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .chance-method:last-child {
      border-bottom: none;
    }
    
    .method-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #f1f8e9;
      color: #4caf50;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 12px;
      flex-shrink: 0;
    }
    
    .method-info {
      flex: 1;
    }
    
    .method-name {
      font-weight: 500;
      margin-bottom: 2px;
    }
    
    .method-desc {
      font-size: 12px;
      color: #999;
    }
    
    .method-action {
      color: #4caf50;
      font-size: 14px;
      font-weight: 500;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 1000;
      background: white;
      border-radius: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      overflow: hidden;
    }
    
    .style-btn {
      border: none;
      background: none;
      padding: 6px 12px;
      cursor: pointer;
      font-size: 12px;
    }
    
    .style-btn.active {
      background-color: #ff4d4f;
      color: white;
    }
    
    /* 各种风格的特定样式 */
    /* 1. 转盘抽奖 */
    #style1 .draw-area {
      background: linear-gradient(135deg, #fff3e0, #ffe0b2);
      text-align: center;
      padding: 30px 20px;
    }
    
    #style1 .wheel-container {
      position: relative;
      width: 280px;
      height: 280px;
      margin: 0 auto 24px;
    }
    
    #style1 .prize-wheel {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: white;
      position: relative;
      overflow: hidden;
      transform: rotate(0deg);
      transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
      box-shadow: 0 5px 15px rgba(255,152,0,0.2);
    }
    
    #style1 .wheel-section {
      position: absolute;
      width: 50%;
      height: 50%;
      transform-origin: bottom right;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    
    #style1 .wheel-section:nth-child(1) {
      background-color: #ffecb3;
      transform: rotate(0deg);
    }
    
    #style1 .wheel-section:nth-child(2) {
      background-color: #ffe0b2;
      transform: rotate(45deg);
    }
    
    #style1 .wheel-section:nth-child(3) {
      background-color: #ffcc80;
      transform: rotate(90deg);
    }
    
    #style1 .wheel-section:nth-child(4) {
      background-color: #ffb74d;
      transform: rotate(135deg);
    }
    
    #style1 .wheel-section:nth-child(5) {
      background-color: #ffa726;
      transform: rotate(180deg);
    }
    
    #style1 .wheel-section:nth-child(6) {
      background-color: #ff9800;
      transform: rotate(225deg);
    }
    
    #style1 .wheel-section:nth-child(7) {
      background-color: #fb8c00;
      transform: rotate(270deg);
    }
    
    #style1 .wheel-section:nth-child(8) {
      background-color: #f57c00;
      transform: rotate(315deg);
    }
    
    #style1 .wheel-text {
      position: absolute;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      transform-origin: center;
    }
    
    #style1 .wheel-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background-color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 3px 10px rgba(0,0,0,0.2);
      z-index: 2;
    }
    
    #style1 .wheel-pointer {
      position: absolute;
      top: -15px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
      border-top: 25px solid #ff4d4f;
      z-index: 1;
    }
    
    #style1 .draw-tips {
      font-size: 14px;
      color: #e65100;
      margin-bottom: 20px;
    }
    
    /* 2. 砸金蛋抽奖 */
    #style2 .draw-area {
      background: linear-gradient(135deg, #fbe9e7, #ffccbc);
      text-align: center;
      padding: 20px;
    }
    
    #style2 .eggs-container {
      display: flex;
      justify-content: space-around;
      margin-bottom: 24px;
    }
    
    #style2 .golden-egg {
      width: 90px;
      height: 110px;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s;
    }
    
    #style2 .golden-egg:hover {
      transform: scale(1.05);
    }
    
    #style2 .egg-shell {
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #ffd700, #ffb300);
      border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      position: relative;
      box-shadow: inset -10px -5px 0 rgba(0,0,0,0.1);
    }
    
    #style2 .egg-shadow {
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 70%;
      height: 15px;
      background-color: rgba(0,0,0,0.1);
      border-radius: 50%;
    }
    
    #style2 .hammer {
      position: fixed;
      width: 60px;
      height: 60px;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-30deg);
      z-index: 10;
      display: none;
    }
    
    #style2 .hammer.active {
      display: block;
      animation: hammerHit 0.5s;
    }
    
    @keyframes hammerHit {
      0% { transform: translate(-50%, -50%) rotate(-30deg); }
      50% { transform: translate(-50%, 50%) rotate(30deg); }
      100% { transform: translate(-50%, -50%) rotate(-30deg); }
    }
    
    #style2 .crack-effect {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath d='M30,20 L70,80 M50,10 L50,100 M20,50 L80,50' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      display: none;
    }
    
    #style2 .crack-effect.active {
      display: block;
    }
    
    /* 3. 翻牌抽奖 */
    #style3 .draw-area {
      background-color: #f0f4f8;
      padding: 20px 10px;
    }
    
    #style3 .cards-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      margin-bottom: 24px;
    }
    
    #style3 .prize-card {
      height: 120px;
      perspective: 1000px;
      cursor: pointer;
    }
    
    #style3 .card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.6s;
      transform-style: preserve-3d;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    #style3 .prize-card.flipped .card-inner {
      transform: rotateY(180deg);
    }
    
    #style3 .card-front, #style3 .card-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
    }
    
    #style3 .card-front {
      background: linear-gradient(135deg, #4fc3f7, #0288d1);
      color: white;
      font-size: 24px;
    }
    
    #style3 .card-back {
      background-color: white;
      color: #333;
      transform: rotateY(180deg);
      flex-direction: column;
      padding: 10px;
    }
    
    #style3 .card-back-icon {
      font-size: 30px;
      color: #ff9800;
      margin-bottom: 8px;
    }
    
    #style3 .card-back-text {
      font-size: 14px;
      text-align: center;
    }
    
    /* 4. 刮刮乐抽奖 */
    #style4 .draw-area {
      background-color: #fff8e1;
      text-align: center;
      padding: 20px;
    }
    
    #style4 .scratch-card {
      width: 100%;
      height: 160px;
      background-color: #ffe082;
      border-radius: 12px;
      margin: 0 auto 24px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(255,193,7,0.2);
    }
    
    #style4 .scratch-cover {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #ffd54f, #ffb300);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      color: #e65100;
      font-weight: 600;
      cursor: grab;
    }
    
    #style4 .scratch-cover:active {
      cursor: grabbing;
    }
    
    #style4 .scratch-icon {
      font-size: 24px;
      margin-bottom: 8px;
    }
    
    #style4 .scratch-text {
      font-size: 16px;
    }
    
    #style4 .scratch-result {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      background-color: #fff3e0;
    }
    
    #style4 .result-icon {
      font-size: 36px;
      color: #ff9800;
      margin-bottom: 12px;
    }
    
    #style4 .result-text {
      font-size: 18px;
      font-weight: 600;
      color: #e65100;
    }
    
    /* 5. 签到抽奖 */
    #style5 .draw-area {
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      padding: 20px;
    }
    
    #style5 .checkin-calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 8px;
      margin-bottom: 24px;
    }
    
    #style5 .calendar-header {
      text-align: center;
      font-size: 12px;
      color: #666;
      padding: 5px 0;
    }
    
    #style5 .checkin-day {
      aspect-ratio: 1;
      border-radius: 8px;
      background-color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    #style5 .checkin-day.checked {
      background-color: #81c784;
      color: white;
      position: relative;
    }
    
    #style5 .checkin-day.checked::after {
      content: "✓";
      position: absolute;
      font-size: 18px;
    }
    
    #style5 .checkin-day.today {
      border: 2px solid #4caf50;
      color: #4caf50;
    }
    
    #style5 .checkin-day.locked {
      background-color: #f5f5f5;
      color: #ccc;
    }
    
    #style5 .checkin-rewards {
      background-color: white;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 24px;
    }
    
    #style5 .reward-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #2e7d32;
    }
    
    #style5 .reward-item {
      display: flex;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #f5f5f5;
    }
    
    #style5 .reward-item:last-child {
      border-bottom: none;
    }
    
    #style5 .reward-day {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background-color: #e8f5e9;
      color: #2e7d32;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      margin-right: 12px;
    }
    
    #style5 .reward-day.achieved {
      background-color: #81c784;
      color: white;
    }
    
    #style5 .reward-info {
      flex: 1;
    }
    
    #style5 .reward-name {
      font-weight: 500;
      font-size: 14px;
    }
    
    #style5 .reward-status {
      font-size: 12px;
      color: #81c784;
      font-weight: 500;
    }
    
    #style5 .reward-status.locked {
      color: #ccc;
    }
    
    /* 6. 积分抽奖 */
    #style6 .draw-area {
      background: linear-gradient(135deg, #e3f2fd, #bbdefb);
      padding: 20px;
    }
    
    #style6 .points-info {
      background-color: white;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    #style6 .points-balance {
      display: flex;
      align-items: center;
    }
    
    #style6 .points-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: #bbdefb;
      color: #1976d2;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-right: 12px;
    }
    
    #style6 .points-text {
      font-size: 14px;
      color: #666;
    }
    
    #style6 .points-value {
      font-size: 18px;
      font-weight: 700;
      color: #1976d2;
    }
    
    #style6 .recharge-btn {
      background-color: #1976d2;
      color: white;
      border: none;
      border-radius: 20px;
      padding: 6px 16px;
      font-size: 14px;
      font-weight: 500;
    }
    
    #style6 .draw-options {
      display: flex;
      justify-content: space-between;
      margin-bottom: 24px;
    }
    
    #style6 .draw-option {
      flex: 1;
      background-color: white;
      border-radius: 12px;
      padding: 16px 10px;
      text-align: center;
      margin: 0 8px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    #style6 .draw-option.active {
      border: 2px solid #1976d2;
      box-shadow: 0 4px 12px rgba(25,118,210,0.2);
    }
    
    #style6 .option-times {
      font-size: 18px;
      font-weight: 700;
      color: #1976d2;
      margin-bottom: 4px;
    }
    
    #style6 .option-points {
      font-size: 14px;
      color: #666;
    }
    
    #style6 .prize-odds {
      background-color: white;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 20px;
    }
    
    #style6 .odds-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #1976d2;
    }
    
    /* 中奖弹窗 */
    .prize-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0,0,0,0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }
    
    .prize-modal.active {
      opacity: 1;
      visibility: visible;
    }
    
    .modal-content {
      background-color: white;
      border-radius: 20px;
      width: 85%;
      max-width: 350px;
      padding: 30px 20px;
      text-align: center;
      position: relative;
      transform: translateY(-20px);
      transition: transform 0.3s;
    }
    
    .prize-modal.active .modal-content {
      transform: translateY(0);
    }
    
    .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 20px;
      color: #999;
      cursor: pointer;
    }
    
    .modal-icon {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background-color: #fff3e0;
      color: #ff9800;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 40px;
      margin: 0 auto 20px;
    }
    
    .modal-title {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 10px;
    }
    
    .modal-desc {
      font-size: 16px;
      color: #666;
      margin-bottom: 24px;
    }
    
    .modal-prize {
      font-size: 18px;
      font-weight: 600;
      color: #ff4d4f;
      margin-bottom: 24px;
    }
    
    .modal-btn {
      display: block;
      width: 100%;
      padding: 12px;
      border-radius: 30px;
      font-weight: 600;
      font-size: 16px;
      border: none;
      cursor: pointer;
      background-color: #ff4d4f;
      color: white;
    }
  </style>
</head>
<body>
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <button class="style-btn active" data-style="style1">转盘抽奖</button>
    <button class="style-btn" data-style="style2">砸金蛋</button>
    <button class="style-btn" data-style="style3">翻牌抽奖</button>
    <button class="style-btn" data-style="style4">刮刮乐</button>
    <button class="style-btn" data-style="style5">签到抽奖</button>
    <button class="style-btn" data-style="style6">积分抽奖</button>
  </div>
  
  <!-- 中奖弹窗 -->
  <div class="prize-modal" id="prizeModal">
    <div class="modal-content">
      <button class="modal-close" id="modalClose">
        <i class="fa fa-times"></i>
      </button>
      <div class="modal-icon">
        <i class="fa fa-gift"></i>
      </div>
      <h3 class="modal-title">恭喜您中奖了！</h3>
      <p class="modal-desc">您获得了以下奖品</p>
      <p class="modal-prize">100元购物卡</p>
      <button class="modal-btn" id="claimPrize">立即领取</button>
    </div>
  </div>
  
  <!-- 1. 转盘抽奖 -->
  <div id="style1" class="draw-style active">
    <div class="container">
      <div class="prize-draw-header">
        <h1 class="draw-title">幸运大转盘</h1>
        <p class="draw-desc">每日有3次抽奖机会，赢取丰厚奖品</p>
        <div class="countdown">
          <i class="fa fa-clock-o"></i> 活动剩余: <span class="countdown-time">5天8小时</span>
        </div>
      </div>
      
      <div class="user-info">
        <img src="https://picsum.photos/200/200?random=1" alt="用户头像" class="user-avatar">
        <span class="user-name">用户123456</span>
        <span class="draw-chances"><i class="fa fa-ticket"></i> 剩余3次机会</span>
      </div>
      
      <div class="draw-area">
        <div class="wheel-container">
          <div class="prize-wheel" id="prizeWheel">
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(22.5deg) translate(50px, -20px);">10元券</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(67.5deg) translate(50px, -20px);">谢谢参与</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(112.5deg) translate(50px, -20px);">50元券</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(157.5deg) translate(50px, -20px);">20元券</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(202.5deg) translate(50px, -20px);">100元券</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(247.5deg) translate(50px, -20px);">5元券</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(292.5deg) translate(50px, -20px);">谢谢参与</div>
            </div>
            <div class="wheel-section">
              <div class="wheel-text" style="transform: rotate(337.5deg) translate(50px, -20px);">30元券</div>
            </div>
            <div class="wheel-center">
              <i class="fa fa-refresh"></i>
            </div>
            <div class="wheel-pointer"></div>
          </div>
        </div>
        
        <p class="draw-tips">点击中心按钮开始抽奖</p>
        
        <div class="action-bar">
          <button class="btn btn-primary" id="startDraw">开始抽奖</button>
        </div>
      </div>
      
      <div class="prizes-container">
        <h3 class="record-title"><i class="fa fa-gift"></i> 奖品设置</h3>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">100元购物券</div>
            <div class="prize-desc">满200元可用</div>
          </div>
          <div class="prize-probability">1%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">50元购物券</div>
            <div class="prize-desc">满100元可用</div>
          </div>
          <div class="prize-probability">3%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">30元购物券</div>
            <div class="prize-desc">满50元可用</div>
          </div>
          <div class="prize-probability">5%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">20元购物券</div>
            <div class="prize-desc">满30元可用</div>
          </div>
          <div class="prize-probability">10%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">10元购物券</div>
            <div class="prize-desc">满20元可用</div>
          </div>
          <div class="prize-probability">20%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">5元购物券</div>
            <div class="prize-desc">无门槛使用</div>
          </div>
          <div class="prize-probability">30%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-meh-o"></i></div>
          <div class="prize-info">
            <div class="prize-name">谢谢参与</div>
            <div class="prize-desc">再接再厉</div>
          </div>
          <div class="prize-probability">31%</div>
        </div>
      </div>
      
      <div class="winners-record">
        <h3 class="record-title"><i class="fa fa-bell"></i> 最近中奖记录</h3>
        <div class="winner-item">
          <div class="winner-name">用户789***</div>
          <div class="winner-prize">50元购物券</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户456***</div>
          <div class="winner-prize">10元购物券</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户123***</div>
          <div class="winner-prize">谢谢参与</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户654***</div>
          <div class="winner-prize">30元购物券</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户987***</div>
          <div class="winner-prize">100元购物券</div>
        </div>
      </div>
      
      <div class="get-chances">
        <h3 class="get-chances-title"><i class="fa fa-plus-circle"></i> 如何获得更多抽奖机会</h3>
        <div class="chance-method">
          <div class="method-icon"><i class="fa fa-sign-in"></i></div>
          <div class="method-info">
            <div class="method-name">每日签到</div>
            <div class="method-desc">每日签到可获得1次抽奖机会</div>
          </div>
          <div class="method-action">去完成</div>
        </div>
        <div class="chance-method">
          <div class="method-icon"><i class="fa fa-share-alt"></i></div>
          <div class="method-info">
            <div class="method-name">分享活动</div>
            <div class="method-desc">分享活动给好友可获得2次抽奖机会</div>
          </div>
          <div class="method-action">去完成</div>
        </div>
        <div class="chance-method">
          <div class="method-icon"><i class="fa fa-comment"></i></div>
          <div class="method-info">
            <div class="method-name">发表评论</div>
            <div class="method-desc">发表3条有效评论可获得1次抽奖机会</div>
          </div>
          <div class="method-action">去完成</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 2. 砸金蛋抽奖 -->
  <div id="style2" class="draw-style">
    <div class="container">
      <div class="prize-draw-header">
        <h1 class="draw-title">砸金蛋赢大奖</h1>
        <p class="draw-desc">砸开金蛋，惊喜好礼等你拿</p>
        <div class="countdown">
          <i class="fa fa-clock-o"></i> 活动剩余: <span class="countdown-time">3天12小时</span>
        </div>
      </div>
      
      <div class="user-info">
        <img src="https://picsum.photos/200/200?random=2" alt="用户头像" class="user-avatar">
        <span class="user-name">用户654321</span>
        <span class="draw-chances"><i class="fa fa-hammer"></i> 剩余5次机会</span>
      </div>
      
      <div class="draw-area">
        <div class="eggs-container">
          <div class="golden-egg" data-egg="1">
            <div class="egg-shell"></div>
            <div class="egg-shadow"></div>
            <div class="crack-effect"></div>
          </div>
          <div class="golden-egg" data-egg="2">
            <div class="egg-shell"></div>
            <div class="egg-shadow"></div>
            <div class="crack-effect"></div>
          </div>
          <div class="golden-egg" data-egg="3">
            <div class="egg-shell"></div>
            <div class="egg-shadow"></div>
            <div class="crack-effect"></div>
          </div>
        </div>
        
        <div class="hammer" id="hammer">
          <i class="fa fa-hammer" style="font-size: 40px; color: #795548;"></i>
        </div>
        
        <p class="draw-tips">点击金蛋砸开它，看看里面有什么奖品</p>
        
        <div class="action-bar">
          <button class="btn btn-primary" id="refreshEggs">重新开始</button>
        </div>
      </div>
      
      <div class="prizes-container">
        <h3 class="record-title"><i class="fa fa-gift"></i> 奖品设置</h3>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-mobile"></i></div>
          <div class="prize-info">
            <div class="prize-name">最新款智能手机</div>
            <div class="prize-desc">128G内存，黑色</div>
          </div>
          <div class="prize-probability">0.1%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-headphones"></i></div>
          <div class="prize-info">
            <div class="prize-name">无线蓝牙耳机</div>
            <div class="prize-desc">续航24小时</div>
          </div>
          <div class="prize-probability">1%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-power-off"></i></div>
          <div class="prize-info">
            <div class="prize-name">充电宝</div>
            <div class="prize-desc">10000mAh</div>
          </div>
          <div class="prize-probability">5%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">20元话费</div>
            <div class="prize-desc">全国通用</div>
          </div>
          <div class="prize-probability">10%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-meh-o"></i></div>
          <div class="prize-info">
            <div class="prize-name">谢谢参与</div>
            <div class="prize-desc">再接再厉</div>
          </div>
          <div class="prize-probability">83.9%</div>
        </div>
      </div>
      
      <div class="winners-record">
        <h3 class="record-title"><i class="fa fa-bell"></i> 最近中奖记录</h3>
        <div class="winner-item">
          <div class="winner-name">用户111***</div>
          <div class="winner-prize">无线蓝牙耳机</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户222***</div>
          <div class="winner-prize">20元话费</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户333***</div>
          <div class="winner-prize">谢谢参与</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户444***</div>
          <div class="winner-prize">充电宝</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户555***</div>
          <div class="winner-prize">谢谢参与</div>
        </div>
      </div>
      
      <div class="get-chances">
        <h3 class="get-chances-title"><i class="fa fa-plus-circle"></i> 如何获得更多砸蛋机会</h3>
        <div class="chance-method">
          <div class="method-icon"><i class="fa fa-user-plus"></i></div>
          <div class="method-info">
            <div class="method-name">邀请好友注册</div>
            <div class="method-desc">每邀请1位好友注册获得2次砸蛋机会</div>
          </div>
          <div class="method-action">去邀请</div>
        </div>
        <div class="chance-method">
          <div class="method-icon"><i class="fa fa-shopping-cart"></i></div>
          <div class="method-info">
            <div class="method-name">完成购物</div>
            <div class="method-desc">单笔订单满99元获得3次砸蛋机会</div>
          </div>
          <div class="method-action">去购物</div>
        </div>
        <div class="chance-method">
          <div class="method-icon"><i class="fa fa-star"></i></div>
          <div class="method-info">
            <div class="method-name">评价商品</div>
            <div class="method-desc">完成5条有效评价获得1次砸蛋机会</div>
          </div>
          <div class="method-action">去评价</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 3. 翻牌抽奖 -->
  <div id="style3" class="draw-style">
    <div class="container">
      <div class="prize-draw-header">
        <h1 class="draw-title">幸运翻牌</h1>
        <p class="draw-desc">翻开封印的卡牌，赢取惊喜好礼</p>
        <div class="countdown">
          <i class="fa fa-clock-o"></i> 活动剩余: <span class="countdown-time">7天5小时</span>
        </div>
      </div>
      
      <div class="user-info">
        <img src="https://picsum.photos/200/200?random=3" alt="用户头像" class="user-avatar">
        <span class="user-name">用户789012</span>
        <span class="draw-chances"><i class="fa fa-clone"></i> 剩余2次机会</span>
      </div>
      
      <div class="draw-area">
        <div class="cards-container">
          <div class="prize-card" data-card="1">
            <div class="card-inner">
              <div class="card-front">1</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-ticket"></i></div>
                <div class="card-back-text">10元优惠券</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="2">
            <div class="card-inner">
              <div class="card-front">2</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-meh-o"></i></div>
                <div class="card-back-text">谢谢参与</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="3">
            <div class="card-inner">
              <div class="card-front">3</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-gift"></i></div>
                <div class="card-back-text">精美礼品一份</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="4">
            <div class="card-inner">
              <div class="card-front">4</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-ticket"></i></div>
                <div class="card-back-text">20元优惠券</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="5">
            <div class="card-inner">
              <div class="card-front">5</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-trophy"></i></div>
                <div class="card-back-text">一等奖</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="6">
            <div class="card-inner">
              <div class="card-front">6</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-meh-o"></i></div>
                <div class="card-back-text">谢谢参与</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="7">
            <div class="card-inner">
              <div class="card-front">7</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-ticket"></i></div>
                <div class="card-back-text">5元优惠券</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="8">
            <div class="card-inner">
              <div class="card-front">8</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-meh-o"></i></div>
                <div class="card-back-text">谢谢参与</div>
              </div>
            </div>
          </div>
          <div class="prize-card" data-card="9">
            <div class="card-inner">
              <div class="card-front">9</div>
              <div class="card-back">
                <div class="card-back-icon"><i class="fa fa-ticket"></i></div>
                <div class="card-back-text">30元优惠券</div>
              </div>
            </div>
          </div>
        </div>
        
        <p class="draw-tips">点击卡牌翻开，每次可翻2张牌，配对成功即可获得对应奖品</p>
        
        <div class="action-bar">
          <button class="btn btn-primary" id="resetCards">重置卡牌</button>
        </div>
      </div>
      
      <div class="prizes-container">
        <h3 class="record-title"><i class="fa fa-gift"></i> 奖品设置</h3>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-trophy"></i></div>
          <div class="prize-info">
            <div class="prize-name">一等奖 - 智能手表</div>
            <div class="prize-desc">运动监测，心率监测</div>
          </div>
          <div class="prize-probability">2%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-gift"></i></div>
          <div class="prize-info">
            <div class="prize-name">精美礼品</div>
            <div class="prize-desc">随机发送一份精美礼品</div>
          </div>
          <div class="prize-probability">8%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">30元优惠券</div>
            <div class="prize-desc">满50元可用</div>
          </div>
          <div class="prize-probability">15%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">20元优惠券</div>
            <div class="prize-desc">满30元可用</div>
          </div>
          <div class="prize-probability">20%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">10元优惠券</div>
            <div class="prize-desc">满20元可用</div>
          </div>
          <div class="prize-probability">25%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-meh-o"></i></div>
          <div class="prize-info">
            <div class="prize-name">谢谢参与</div>
            <div class="prize-desc">再接再厉</div>
          </div>
          <div class="prize-probability">30%</div>
        </div>
      </div>
      
      <div class="winners-record">
        <h3 class="record-title"><i class="fa fa-bell"></i> 最近中奖记录</h3>
        <div class="winner-item">
          <div class="winner-name">用户666***</div>
          <div class="winner-prize">智能手表</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户777***</div>
          <div class="winner-prize">20元优惠券</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户888***</div>
          <div class="winner-prize">谢谢参与</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户999***</div>
          <div class="winner-prize">精美礼品</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户000***</div>
          <div class="winner-prize">30元优惠券</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 4. 刮刮乐抽奖 -->
  <div id="style4" class="draw-style">
    <div class="container">
      <div class="prize-draw-header">
        <h1 class="draw-title">幸运刮刮乐</h1>
        <p class="draw-desc">刮开涂层，惊喜大奖等你拿</p>
        <div class="countdown">
          <i class="fa fa-clock-o"></i> 活动剩余: <span class="countdown-time">2天18小时</span>
        </div>
      </div>
      
      <div class="user-info">
        <img src="https://picsum.photos/200/200?random=4" alt="用户头像" class="user-avatar">
        <span class="user-name">用户246801</span>
        <span class="draw-chances"><i class="fa fa-scissors"></i> 剩余4次机会</span>
      </div>
      
      <div class="draw-area">
        <div class="scratch-card" id="scratchCard">
          <div class="scratch-cover" id="scratchCover">
            <div class="scratch-icon"><i class="fa fa-hand-paper-o"></i></div>
            <div class="scratch-text">刮开灰色区域</div>
          </div>
          <div class="scratch-result">
            <div class="result-icon"><i class="fa fa-gift"></i></div>
            <div class="result-text">恭喜获得50元红包</div>
          </div>
        </div>
        
        <p class="draw-tips">用手指在灰色区域刮擦，查看中奖结果</p>
        
        <div class="action-bar">
          <button class="btn btn-primary" id="newScratchCard">再来一张</button>
        </div>
      </div>
      
      <div class="prizes-container">
        <h3 class="record-title"><i class="fa fa-gift"></i> 奖品设置</h3>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-money"></i></div>
          <div class="prize-info">
            <div class="prize-name">100元现金红包</div>
            <div class="prize-desc">可直接提现到钱包</div>
          </div>
          <div class="prize-probability">0.5%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-money"></i></div>
          <div class="prize-info">
            <div class="prize-name">50元现金红包</div>
            <div class="prize-desc">可直接提现到钱包</div>
          </div>
          <div class="prize-probability">2%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-money"></i></div>
          <div class="prize-info">
            <div class="prize-name">20元现金红包</div>
            <div class="prize-desc">可直接提现到钱包</div>
          </div>
          <div class="prize-probability">5%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-money"></i></div>
          <div class="prize-info">
            <div class="prize-name">10元现金红包</div>
            <div class="prize-desc">可直接提现到钱包</div>
          </div>
          <div class="prize-probability">10%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-money"></i></div>
          <div class="prize-info">
            <div class="prize-name">5元现金红包</div>
            <div class="prize-desc">可直接提现到钱包</div>
          </div>
          <div class="prize-probability">20%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-meh-o"></i></div>
          <div class="prize-info">
            <div class="prize-name">谢谢参与</div>
            <div class="prize-desc">再接再厉</div>
          </div>
          <div class="prize-probability">62.5%</div>
        </div>
      </div>
      
      <div class="winners-record">
        <h3 class="record-title"><i class="fa fa-bell"></i> 最近中奖记录</h3>
        <div class="winner-item">
          <div class="winner-name">用户13579***</div>
          <div class="winner-prize">10元现金红包</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户24680***</div>
          <div class="winner-prize">谢谢参与</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户97531***</div>
          <div class="winner-prize">50元现金红包</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户86420***</div>
          <div class="winner-prize">5元现金红包</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户12345***</div>
          <div class="winner-prize">20元现金红包</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 5. 签到抽奖 -->
  <div id="style5" class="draw-style">
    <div class="container">
      <div class="prize-draw-header">
        <h1 class="draw-title">每日签到抽大奖</h1>
        <p class="draw-desc">连续签到天数越多，奖品越丰厚</p>
        <div class="countdown">
          <i class="fa fa-clock-o"></i> 今日剩余: <span class="countdown-time">12小时30分</span>
        </div>
      </div>
      
      <div class="user-info">
        <img src="https://picsum.photos/200/200?random=5" alt="用户头像" class="user-avatar">
        <span class="user-name">用户369258</span>
        <span class="draw-chances"><i class="fa fa-calendar-check-o"></i> 连续签到5天</span>
      </div>
      
      <div class="draw-area">
        <div class="checkin-calendar">
          <div class="calendar-header">一</div>
          <div class="calendar-header">二</div>
          <div class="calendar-header">三</div>
          <div class="calendar-header">四</div>
          <div class="calendar-header">五</div>
          <div class="calendar-header">六</div>
          <div class="calendar-header">日</div>
          
          <div class="checkin-day locked">29</div>
          <div class="checkin-day locked">30</div>
          <div class="checkin-day locked">31</div>
          <div class="checkin-day checked">1</div>
          <div class="checkin-day checked">2</div>
          <div class="checkin-day checked">3</div>
          <div class="checkin-day checked">4</div>
          
          <div class="checkin-day checked">5</div>
          <div class="checkin-day today">6</div>
          <div class="checkin-day locked">7</div>
          <div class="checkin-day locked">8</div>
          <div class="checkin-day locked">9</div>
          <div class="checkin-day locked">10</div>
          <div class="checkin-day locked">11</div>
          
          <div class="checkin-day locked">12</div>
          <div class="checkin-day locked">13</div>
          <div class="checkin-day locked">14</div>
          <div class="checkin-day locked">15</div>
          <div class="checkin-day locked">16</div>
          <div class="checkin-day locked">17</div>
          <div class="checkin-day locked">18</div>
        </div>
        
        <div class="checkin-rewards">
          <h3 class="reward-title">连续签到奖励</h3>
          <div class="reward-item">
            <div class="reward-day achieved">1天</div>
            <div class="reward-info">
              <div class="reward-name">5积分</div>
            </div>
            <div class="reward-status">已领取</div>
          </div>
          <div class="reward-item">
            <div class="reward-day achieved">3天</div>
            <div class="reward-info">
              <div class="reward-name">10积分 + 1次抽奖机会</div>
            </div>
            <div class="reward-status">已领取</div>
          </div>
          <div class="reward-item">
            <div class="reward-day">7天</div>
            <div class="reward-info">
              <div class="reward-name">50积分 + 3次抽奖机会 + 20元券</div>
            </div>
            <div class="reward-status locked">未达成</div>
          </div>
          <div class="reward-item">
            <div class="reward-day">15天</div>
            <div class="reward-info">
              <div class="reward-name">100积分 + 5次抽奖机会 + 50元券</div>
            </div>
            <div class="reward-status locked">未达成</div>
          </div>
          <div class="reward-item">
            <div class="reward-day">30天</div>
            <div class="reward-info">
              <div class="reward-name">500积分 + 10次抽奖机会 + 100元券</div>
            </div>
            <div class="reward-status locked">未达成</div>
          </div>
        </div>
        
        <div class="action-bar">
          <button class="btn btn-primary" id="checkinToday">今日签到</button>
        </div>
      </div>
      
      <div class="prizes-container">
        <h3 class="record-title"><i class="fa fa-gift"></i> 签到抽奖奖品</h3>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-laptop"></i></div>
          <div class="prize-info">
            <div class="prize-name">笔记本电脑</div>
            <div class="prize-desc">连续签到30天有机会获得</div>
          </div>
          <div class="prize-probability">0.01%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-tablet"></i></div>
          <div class="prize-info">
            <div class="prize-name">平板电脑</div>
            <div class="prize-desc">连续签到15天有机会获得</div>
          </div>
          <div class="prize-probability">0.1%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">50元购物券</div>
            <div class="prize-desc">满100元可用</div>
          </div>
          <div class="prize-probability">5%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-ticket"></i></div>
          <div class="prize-info">
            <div class="prize-name">20元购物券</div>
            <div class="prize-desc">满30元可用</div>
          </div>
          <div class="prize-probability">10%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-star"></i></div>
          <div class="prize-info">
            <div class="prize-name">10-100积分</div>
            <div class="prize-desc">可兑换商品或优惠券</div>
          </div>
          <div class="prize-probability">60%</div>
        </div>
      </div>
      
      <div class="winners-record">
        <h3 class="record-title"><i class="fa fa-bell"></i> 签到中奖记录</h3>
        <div class="winner-item">
          <div class="winner-name">用户11223***</div>
          <div class="winner-prize">50元购物券</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户44556***</div>
          <div class="winner-prize">50积分</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户77889***</div>
          <div class="winner-prize">20元购物券</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户00112***</div>
          <div class="winner-prize">平板电脑</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户33445***</div>
          <div class="winner-prize">30积分</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 6. 积分抽奖 -->
  <div id="style6" class="draw-style">
    <div class="container">
      <div class="prize-draw-header">
        <h1 class="draw-title">积分幸运抽奖</h1>
        <p class="draw-desc">消耗积分参与抽奖，大奖等你拿</p>
        <div class="countdown">
          <i class="fa fa-clock-o"></i> 活动剩余: <span class="countdown-time">10天2小时</span>
        </div>
      </div>
      
      <div class="user-info">
        <img src="https://picsum.photos/200/200?random=6" alt="用户头像" class="user-avatar">
        <span class="user-name">用户555666</span>
        <span class="draw-chances"><i class="fa fa-diamond"></i> 5800积分</span>
      </div>
      
      <div class="draw-area">
        <div class="points-info">
          <div class="points-balance">
            <div class="points-icon">
              <i class="fa fa-diamond"></i>
            </div>
            <div>
              <div class="points-text">我的积分</div>
              <div class="points-value">5,800 积分</div>
            </div>
          </div>
          <button class="recharge-btn">充值积分</button>
        </div>
        
        <div class="draw-options">
          <div class="draw-option active" data-times="1" data-points="100">
            <div class="option-times">1次</div>
            <div class="option-points">100积分</div>
          </div>
          <div class="draw-option" data-times="5" data-points="450">
            <div class="option-times">5次</div>
            <div class="option-points">450积分</div>
          </div>
          <div class="draw-option" data-times="10" data-points="800">
            <div class="option-times">10次</div>
            <div class="option-points">800积分</div>
          </div>
        </div>
        
        <div class="prize-odds">
          <h3 class="odds-title">奖品概率说明</h3>
          <div class="prize-item">
            <div class="prize-icon"><i class="fa fa-car"></i></div>
            <div class="prize-info">
              <div class="prize-name">汽车使用权1年</div>
            </div>
            <div class="prize-probability">0.0001%</div>
          </div>
          <div class="prize-item">
            <div class="prize-icon"><i class="fa fa-home"></i></div>
            <div class="prize-info">
              <div class="prize-name">家电大礼包</div>
            </div>
            <div class="prize-probability">0.01%</div>
          </div>
        </div>
        
        <div class="action-bar">
          <button class="btn btn-primary" id="pointsDraw">立即抽奖</button>
        </div>
      </div>
      
      <div class="prizes-container">
        <h3 class="record-title"><i class="fa fa-gift"></i> 奖品设置</h3>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-car"></i></div>
          <div class="prize-info">
            <div class="prize-name">汽车使用权1年</div>
            <div class="prize-desc">指定车型，一年使用权</div>
          </div>
          <div class="prize-probability">0.0001%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-home"></i></div>
          <div class="prize-info">
            <div class="prize-name">家电大礼包</div>
            <div class="prize-desc">包含冰箱、洗衣机、电视</div>
          </div>
          <div class="prize-probability">0.01%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-mobile"></i></div>
          <div class="prize-info">
            <div class="prize-name">智能手机</div>
            <div class="prize-desc">最新款智能手机一部</div>
          </div>
          <div class="prize-probability">0.1%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-gift"></i></div>
          <div class="prize-info">
            <div class="prize-name">1000积分</div>
            <div class="prize-desc">可兑换其他奖品</div>
          </div>
          <div class="prize-probability">5%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-gift"></i></div>
          <div class="prize-info">
            <div class="prize-name">100积分</div>
            <div class="prize-desc">可兑换其他奖品</div>
          </div>
          <div class="prize-probability">30%</div>
        </div>
        <div class="prize-item">
          <div class="prize-icon"><i class="fa fa-gift"></i></div>
          <div class="prize-info">
            <div class="prize-name">20积分</div>
            <div class="prize-desc">可兑换其他奖品</div>
          </div>
          <div class="prize-probability">64.8799%</div>
        </div>
      </div>
      
      <div class="winners-record">
        <h3 class="record-title"><i class="fa fa-bell"></i> 最近中奖记录</h3>
        <div class="winner-item">
          <div class="winner-name">用户88888***</div>
          <div class="winner-prize">100积分</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户99999***</div>
          <div class="winner-prize">20积分</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户66666***</div>
          <div class="winner-prize">智能手机</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户55555***</div>
          <div class="winner-prize">1000积分</div>
        </div>
        <div class="winner-item">
          <div class="winner-name">用户77777***</div>
          <div class="winner-prize">20积分</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 样式切换功能
    document.querySelectorAll('.style-btn').forEach(btn => {
      btn.addEventListener('click', function() {
        // 更新按钮状态
        document.querySelectorAll('.style-btn').forEach(b => b.classList.remove('active'));
        this.classList.add('active');
        
        // 显示对应的样式页面
        const styleId = this.getAttribute('data-style');
        document.querySelectorAll('.draw-style').forEach(style => {
          style.style.display = 'none';
        });
        document.getElementById(styleId).style.display = 'block';
      });
    });
    
    // 中奖弹窗控制
    const prizeModal = document.getElementById('prizeModal');
    const modalClose = document.getElementById('modalClose');
    const claimPrize = document.getElementById('claimPrize');
    
    function showPrizeModal() {
      prizeModal.classList.add('active');
    }
    
    function hidePrizeModal() {
      prizeModal.classList.remove('active');
    }
    
    modalClose.addEventListener('click', hidePrizeModal);
    claimPrize.addEventListener('click', hidePrizeModal);
    
    // 1. 转盘抽奖功能
    const prizeWheel = document.getElementById('prizeWheel');
    const startDraw = document.getElementById('startDraw');
    let isSpinning = false;
    
    if (startDraw) {
      startDraw.addEventListener('click', function() {
        if (isSpinning) return;
        
        isSpinning = true;
        startDraw.disabled = true;
        startDraw.textContent = '抽奖中...';
        
        // 随机旋转角度 (3-5圈 + 随机位置)
        const spinAngle = 1080 + Math.floor(Math.random() * 720) + Math.floor(Math.random() * 360);
        
        // 应用旋转
        prizeWheel.style.transform = `rotate(${spinAngle}deg)`;
        
        // 旋转结束后显示结果
        setTimeout(() => {
          isSpinning = false;
          startDraw.disabled = false;
          startDraw.textContent = '开始抽奖';
          showPrizeModal();
        }, 5000);
      });
    }
    
    // 2. 砸金蛋功能
    const goldenEggs = document.querySelectorAll('#style2 .golden-egg');
    const hammer = document.getElementById('hammer');
    const refreshEggs = document.getElementById('refreshEggs');
    
    goldenEggs.forEach(egg => {
      egg.addEventListener('click', function() {
        // 如果已经砸过则不处理
        if (this.querySelector('.crack-effect').classList.contains('active')) return;
        
        // 显示锤子动画
        const eggRect = this.getBoundingClientRect();
        const containerRect = document.querySelector('#style2 .container').getBoundingClientRect();
        
        hammer.style.top = `${eggRect.top - containerRect.top - 30}px`;
        hammer.style.left = `${eggRect.left - containerRect.left + 45}px`;
        hammer.classList.add('active');
        
        // 锤子动画结束后显示裂纹
        setTimeout(() => {
          hammer.classList.remove('active');
          this.querySelector('.crack-effect').classList.add('active');
          
          // 显示中奖结果
          setTimeout(showPrizeModal, 500);
        }, 500);
      });
    });
    
    if (refreshEggs) {
      refreshEggs.addEventListener('click', function() {
        goldenEggs.forEach(egg => {
          egg.querySelector('.crack-effect').classList.remove('active');
        });
      });
    }
    
    // 3. 翻牌抽奖功能
    const prizeCards = document.querySelectorAll('#style3 .prize-card');
    const resetCards = document.getElementById('resetCards');
    let flippedCards = [];
    let matchedPairs = 0;
    
    prizeCards.forEach(card => {
      card.addEventListener('click', function() {
        // 如果已经翻开或已经匹配则不处理
        if (this.classList.contains('flipped') || flippedCards.length >= 2) return;
        
        // 翻牌
        this.classList.add('flipped');
        flippedCards.push(this);
        
        // 如果翻开了两张牌，检查是否匹配
        if (flippedCards.length === 2) {
          const card1Back = flippedCards[0].querySelector('.card-back-text').textContent;
          const card2Back = flippedCards[1].querySelector('.card-back-text').textContent;
          
          if (card1Back === card2Back && card1Back !== '谢谢参与') {
            // 匹配成功
            matchedPairs++;
            flippedCards = [];
            
            // 如果所有可匹配的都匹配成功
            if (matchedPairs === 3) {
              setTimeout(showPrizeModal, 500);
            }
          } else {
            // 匹配失败，翻回去
            setTimeout(() => {
              flippedCards.forEach(c => c.classList.remove('flipped'));
              flippedCards = [];
            }, 1000);
          }
        }
      });
    });
    
    if (resetCards) {
      resetCards.addEventListener('click', function() {
        prizeCards.forEach(card => {
          card.classList.remove('flipped');
        });
        flippedCards = [];
        matchedPairs = 0;
      });
    }
    
    // 4. 刮刮乐功能
    const scratchCard = document.getElementById('scratchCard');
    const scratchCover = document.getElementById('scratchCover');
    const newScratchCard = document.getElementById('newScratchCard');
    let isScratching = false;
    
    // 创建刮刮乐效果
    function initScratchCard() {
      if (!scratchCover) return;
      
      // 重置刮开状态
      scratchCover.style.opacity = '1';
      
      // 触摸事件
      scratchCover.addEventListener('touchstart', function(e) {
        isScratching = true;
        e.preventDefault();
      });
      
      scratchCover.addEventListener('touchmove', function(e) {
        if (!isScratching) return;
        
        const rect = scratchCover.getBoundingClientRect();
        const touch = e.touches[0];
        
        // 计算刮开的位置并设置透明度
        const x = touch.clientX - rect.left;
        const y = touch.clientY - rect.top;
        
        // 创建刮开效果（简化版）
        const percentScratched = Math.random();
        if (percentScratched > 0.7) {
          scratchCover.style.opacity = '0.3';
          
          // 显示中奖结果
          setTimeout(showPrizeModal, 500);
        }
        
        e.preventDefault();
      });
      
      scratchCover.addEventListener('touchend', function() {
        isScratching = false;
      });
      
      // 鼠标事件（用于桌面调试）
      scratchCover.addEventListener('mousedown', function(e) {
        isScratching = true;
        e.preventDefault();
      });
      
      scratchCover.addEventListener('mousemove', function(e) {
        if (!isScratching) return;
        
        const rect = scratchCover.getBoundingClientRect();
        const x = e.clientX - rect.left;
        const y = e.clientY - rect.top;
        
        // 创建刮开效果（简化版）
        const percentScratched = Math.random();
        if (percentScratched > 0.7) {
          scratchCover.style.opacity = '0.3';
          
          // 显示中奖结果
          setTimeout(showPrizeModal, 500);
        }
        
        e.preventDefault();
      });
      
      scratchCover.addEventListener('mouseup', function() {
        isScratching = false;
      });
    }
    
    if (newScratchCard) {
      newScratchCard.addEventListener('click', function() {
        scratchCover.style.opacity = '1';
      });
    }
    
    // 5. 签到功能
    const checkinToday = document.getElementById('checkinToday');
    
    if (checkinToday) {
      checkinToday.addEventListener('click', function() {
        const today = document.querySelector('#style5 .checkin-day.today');
        today.classList.add('checked');
        today.classList.remove('today');
        
        // 更新连续签到次数
        const chancesEl = document.querySelector('#style5 .draw-chances');
        chancesEl.innerHTML = '<i class="fa fa-calendar-check-o"></i> 连续签到6天';
        
        // 显示奖励
        this.textContent = '已签到';
        this.disabled = true;
        
        // 显示中奖结果
        setTimeout(showPrizeModal, 500);
      });
    }
    
    // 6. 积分抽奖功能
    const drawOptions = document.querySelectorAll('#style6 .draw-option');
    const pointsDraw = document.getElementById('pointsDraw');
    
    drawOptions.forEach(option => {
      option.addEventListener('click', function() {
        drawOptions.forEach(opt => opt.classList.remove('active'));
        this.classList.add('active');
      });
    });
    
    if (pointsDraw) {
      pointsDraw.addEventListener('click', function() {
        const activeOption = document.querySelector('#style6 .draw-option.active');
        const times = activeOption.getAttribute('data-times');
        
        // 显示抽奖中状态
        this.disabled = true;
        this.textContent = '抽奖中...';
        
        // 模拟抽奖过程
        setTimeout(() => {
          this.disabled = false;
          this.textContent = '立即抽奖';
          showPrizeModal();
        }, 1000);
      });
    }
    
    // 初始化
    document.querySelectorAll('.draw-style').forEach((style, index) => {
      if (index !== 0) {
        style.style.display = 'none';
      } else {
        style.display = 'block';
      }
    });
    
    // 初始化刮刮乐
    initScratchCard();
    
    // 倒计时功能
    function updateCountdowns() {
      document.querySelectorAll('.countdown-time').forEach(el => {
        const timeStr = el.textContent;
        let parts = timeStr.split(/天|小时|分/).filter(part => part.trim() !== '');
        
        if (parts.length === 2) {
          // 天和小时格式
          let days = parseInt(parts[0]);
          let hours = parseInt(parts[1]);
          
          hours--;
          if (hours < 0) {
            hours = 23;
            days--;
            if (days < 0) days = 0;
          }
          
          el.textContent = `${days}天${hours}小时`;
        } else if (parts.length === 3) {
          // 天、小时、分钟格式
          let days = parseInt(parts[0]);
          let hours = parseInt(parts[1]);
          let minutes = parseInt(parts[2]);
          
          minutes--;
          if (minutes < 0) {
            minutes = 59;
            hours--;
            if (hours < 0) {
              hours = 23;
              days--;
              if (days < 0) days = 0;
            }
          }
          
          el.textContent = `${days}天${hours}小时${minutes}分`;
        } else if (parts.length === 2 && timeStr.includes(':')) {
          // 小时:分钟:秒格式
          let [hours, minutes, seconds] = timeStr.split(':').map(Number);
          
          seconds--;
          if (seconds < 0) {
            seconds = 59;
            minutes--;
            if (minutes < 0) {
              minutes = 59;
              hours--;
              if (hours < 0) hours = 0;
            }
          }
          
          el.textContent = `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
        }
      });
    }
    
    setInterval(updateCountdowns, 1000);
  </script>
</body>
</html>
